<?php

if (!isset($setting)) $setting = array(
# Common
    "url" 					=> "http://www.mydomain.nl/compare",			# Url of this website
    "base" 					=> dirname(dirname(__FILE__)),		# Internal Path of website root
    "secretfolder"			=> "aTgJkIkjhkjhjkgfjhgfsjhfdsh",	
# Database action logging	
	"logpath"				=> "config/log",
	"logallquerys"			=> false,
	"log_noexec"			=> false,   # Set true if you don't want any DB insert/updates/drop/deletes to be executed.
# Backup & restore	
    "backupfolder"			=> "/tmp/dbcompare",	
    "dumpoptions"			=> "--quote-names --opt --skip-dump-date",
    "mysqldump" 			=> "/usr/bin/mysqldump --host=%s --user=%s --password=%s %s %s > %s",	# 1=host / 2=user / 3=pass / 4=options / 5=dbname / 6=bckfile
    "mysqlrestore" 			=> "/usr/bin/mysql --host=%s --user=%s --password=%s %s < %s",	     	# 1=host / 2=user / 3=pass / 4=dbname / 5=bckfile
    "autobackup"			=> true,	# Automatically backup database before `sync` action.
# MySQL servers	
    "serverconfigfolder"	=> "config/server",	
);


// Define PHP version
// ------------------
if (!defined('PHP_VERSION_ID')) {
    $version = explode('.', PHP_VERSION);
    define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
}
